package org.smog.domain.enums.user;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.smog.core.config.security.SecurityConstant;
import org.smog.core.domain.emuns.IEnumValue;

/**
 * @Description: Created by IntelliJ IDEA.
 * @Project: IntelliJ IDEA
 * @Time: 2020-08-25 15:22
 * @Company: 贵州梵途科技有限公司
 * @Email: 17685306043@163.com
 * @Author: HuangZhongYao(黄中瑶)
 */
@Getter
@AllArgsConstructor
public enum RoleEnum implements IEnumValue {

	UNKNOWN(-1, "未知", SecurityConstant.Role.BASE_PREFIX),
	ADMIN(0, "管理员", SecurityConstant.Role.ADMIN),
	USER(1, "普通用户", SecurityConstant.Role.ADMIN);

	/**
	 * 唯一下标
	 */
	@EnumValue
	int value;
	/**
	 * 描述
	 */
	String desc;
	/**
	 * SpringSecurity 角色code
	 */
	String roleCode;
}
